<?php

/**
 * Controller is the customized base controller class.
 * All controller classes for this application should extend from this base class.
 */
class FrontendApplicationConfig
{

    private static $instance;

    private function __construct()
    {
    }

    public static function app()
    {
        if (!isset(self::$instance))
        {
            $c = __class__;
            self::$instance = new $c;
            //var_dump(self::$instance);exit;
            self::$instance->setParams();
            
            //Yii::app()->components('clientscript', array('class'=>'ext.minScript.components.ExtMinScript'));
            
        }

        return self::$instance;
    }

    public function setParams()
    {
    	    	
    	$array['menus'] = array(
    	
    	);

    	$array['user'] = array(
    	'permissions' => array()
    	);
    	
    	$array['theme'] = array(
    	'jsUrl' => Yii::app()->theme->baseUrl .'/js/',
    	'cssUrl' => Yii::app()->theme->baseUrl .'/css/', 
    	'imageUrl' => Yii::app()->theme->baseUrl .'/images/',
    	);
    	 
    	$array['folder_path'] = array(
    	
    	);
		
    	$array['url_path'] = array(
    	
    	);
    	
    	$array['scaling_params'] = array( 
    	);
    	
		
    	$this->params = $array;
    }

  


}